/* 更新后的样式 */
.Box {
    width: 100vw;
    height: 100vh;
    background-image: url("../../assets/image/indexLightBackground.png");
    position: relative;
    display: flex;
    flex-direction: column;
}

* {
    overflow: hidden;
}

.middle-container {
    flex: 1;
    display: flex;
    justify-content: space-between;
    padding: 0 5vw;
    /* 两侧留白 */
}

/* 数字人区域 */
.character-area {
    width: 45%;
    /* 根据实际需求调整 */
    height: 58vh;
    display: flex;
    justify-content: flex-end;
    /* 右对齐 */
    align-items: center;
    padding-right: 30px;
    /* 与视频间距 */
}

/* 视频区域 */
.video-area {
    width: 100%;
    /* 与左侧对称 */
    height: 100vh;
    display: flex;
    align-items: center;
}

.video-border {
    background-image: url("../../assets/image/border-day.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 60%;
    /* 根据边框图片调整 */
    padding-top: 50px;
    padding-bottom: 50px;
    padding-left: 110px;
    padding-right: 110px;
    box-sizing: border-box;
    margin-right: 0px;
    margin-bottom: 300px;
}

.video-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    /* 可选背景色 */
}

.digital-human-video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    /* 可选光效 */
}

/* 保留原有顶部底部样式 */
.top {
    width: 100vw;
    height: 10.5vh;
    background-image: url("../../assets/image/ceil-day.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.bottom {
    width: 100vw;
    height: 11vh;
    background-image: url("../../assets/image/floor-day.png");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    margin: 0 auto;
}

.img {
    position: fixed;
    bottom: 40px;
    left: 800px;
}

/* 权限对话框样式 */
.permission-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.permission-dialog {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    text-align: center;
}

.permission-dialog h3 {
    margin: 0 0 1rem;
    color: #333;
}

.permission-dialog p {
    color: #666;
    margin-bottom: 1.5rem;
}

.dialog-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.allow-btn,
.deny-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.allow-btn {
    background: #2196F3;
    color: white;
}

.allow-btn:hover {
    background: #1976D2;
}

.deny-btn {
    background: #f44336;
    color: white;
}

.deny-btn:hover {
    background: #d32f2f;
}

.permission-warning {
    color: #d32f2f;
    margin-top: 0.5rem;
    font-size: 0.9em;
    padding: 0.5rem;
    background: #ffebee;
    border-radius: 4px;
}